﻿
function Sample02_Default() {};

Sample02_Default.prototype.main = function() {

    btnSelect = this.Repeater1.FindControl("btnSelect");
    this.addHandler(btnSelect, "click", this.selectAll);

}

Sample02_Default.prototype.selectAll = function() {
    
    for(var i = 0; i < this.Repeater1.Controls.length; i++)
    {
        var CheckBox1 = this.Repeater1.Controls[i].FindControl("CheckBox1");
        
        if(CheckBox1) 
            CheckBox1.checked = !CheckBox1.checked;
    }

}